package Demo_zhuanshu01.X2;

import java.io.*;

public class Day02 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("G:\\XQ1.01\\a.txt");
        OutputStreamWriter os = new OutputStreamWriter(fos);
        BufferedWriter bw = new BufferedWriter(os);
        for (int i =65; i <=90;i++) {
                bw.write(i);
        }
        bw.close();

        FileInputStream fis = new FileInputStream("G:\\XQ1.01\\a.txt");
        InputStreamReader isr = new InputStreamReader(fis);
        BufferedReader br = new BufferedReader(isr);
        while (true){
            int i = br.read();
            if (i==-1)break;
            char c =(char)(i+32);
            System.out.println(c);
        }
        br.close();

    }
}
